//
// Created by Zhao Ziqiu on 2021/8/22.
//

#ifndef NODE_MUSIC_PLAYER_PLAYER_H
#define NODE_MUSIC_PLAYER_PLAYER_H
#include <napi.h>
#include "player-impl.h"
#include "prepare-worker.h"
using namespace Napi;

class Player : public ObjectWrap<Player>{
public:
    static Object Init(Napi::Env env, Object exports);
    explicit Player(const CallbackInfo& info);
    Napi::Value Prepare(const CallbackInfo& info);
    ~Player() override;
private:
    PlayerImpl* playerImpl;
    PrepareWorker* prepareWorker;
};


#endif //NODE_MUSIC_PLAYER_PLAYER_H
